package fms.core.uplinkmsg;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: adcc
 * Date: 14-6-10
 * Time: 下午2:31
 * To change this template use File | Settings | File Templates.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class SendRules {
    @XmlAttribute(name="allowMaxTime")
    private int allowMaxTime;// 允许最大的重发时间，以秒为单位（默认值为600(10分钟)）
    @XmlElementWrapper(name="rules")
    @XmlElement(name="sender")
    private List<Sender> senders;

    public int getAllowMaxTime() {
        return allowMaxTime;
    }

    public void setAllowMaxTime(int allowMaxTime) {
        this.allowMaxTime = allowMaxTime;
    }

    public List<Sender> getSenders() {
        return senders;
    }

    public void setSenders(List<Sender> senders) {
        this.senders = senders;
    }

    public SendRules()
    {
        allowMaxTime = 600;
        senders = new ArrayList<Sender>();
    }


    public enum SenderType{
        // 默认（自动空域方式）
        Default,

        // Arinc 卫星通信方式
        ArincSAT,

        // SitaSat卫星通信方式
        SitaSAT
    }

}
